package org.meichao.demo.service.sequence;

import java.util.concurrent.CountDownLatch;

public class CountDownLatchC implements Runnable {

    private CountDownLatch countDownLatchBC;

    public CountDownLatchC(CountDownLatch countDownLatchBC) {
        this.countDownLatchBC = countDownLatchBC;
    }

    @Override
    public void run() {
        try {
            countDownLatchBC.await();
            System.out.println("c");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
